package com.wish.g1.system.api;

import com.wish.g1.common.core.constant.SecurityConstants;
import com.wish.g1.common.core.constant.ServiceNameConstants;
import com.wish.g1.common.core.domain.R;
import com.wish.g1.system.api.domain.Region;
import com.wish.g1.system.api.domain.SysUser;
import com.wish.g1.system.api.factory.RemoteUserFallbackFactory;
import com.wish.g1.system.api.model.LoginUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 用户服务
 *
 * @author wish
 */
@FeignClient(contextId = "remoteRegionService", value = ServiceNameConstants.HOUSE_SERVICE)
// @FeignClient(contextId = "remoteRegionService",value = ServiceNameConstants.HOUSE_SERVICE,url = "http://39.98.45.46:8102")
public interface RemoteRegionService
{
    /**
     * 通过id查询地区
     * @param regionId
     * @return
     */
    @GetMapping("/region/getNameById/{regionId}")
    public String getNameById(@PathVariable("regionId") Integer regionId);

    @GetMapping("/region/getRegionList")
    public List<Region> getRegionList();

}
